package com.okq.entity;

import com.okq.entity.base.DataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 描述 : 角色表实体
 * 作者 : zdl
 * 日期 : 2017/6/27 16:53
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "tb_role")
public class Role extends DataEntity implements Serializable {

    private static final long serialVersionUID = 8236079287755852472L;
    /**
     * 角色名称
     */
    @Column(name = "roleName", length = 40)
    private String roleName;
    /**
     * 角色类型0：超级管理员1：管理员2：普通用户
     */
    @Column(name = "roleType")
    private Integer roleType;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
